<!-- page specific plugin scripts -->
<link rel="stylesheet" href="${plugin}/grid/bsgrid/builds/merged/bsgrid.all.min.css"/>
<link rel="stylesheet" href="${plugin}/grid/bsgrid/builds/css/skins/grid_blue.min.css"/>
<script type="text/javascript" src="${plugin}/grid/bsgrid/builds/js/util.min.js"></script>
<script type="text/javascript" src="${plugin}/grid/bsgrid/builds/js/lang/grid.zh-CN.min.js"></script>
<script type="text/javascript" src="${plugin}/grid/bsgrid/builds/merged/bsgrid.all.min.js"></script>
<script  type="text/javascript" src="${plugin}/My97DatePickerBeta/My97DatePicker/WdatePicker.js"></script>

<script type="text/javascript">
var settings = {
		modelDomainFlag:"sys"
	    ,modelFlag:"email"
 }
</script> 
<script type="text/javascript">
<!--
$script(indexJs, 'indexJs',function(){
	$script(window.global.ctx+'/static/fw/js/fw-bsgrid.js','fw-bsgrid', function() {
		$script(window.global.ctx+'/static/js/sys/email/index.js','email', function() {
		},1);
	});
});
//-->
</script>
<!-- 搜索框 开始 -->
<div class="page-header">
  		<div class="row fw-margin">
  			<div class="col-xs-12">
  				<form id="searchForm" action="${ctx}/sys/email/query?_style=bs&${session._para}" class="form-inline" role="form">
				  <div class="form-group  ">
				     <label for="subject">主题:</label>
				      <input type="text" class="validate[maxSize[50]]" name="subject" placeholder="主题">
				  </div> 
				  <div class="form-group  ">
				     <label for="name">类别:</label>
					 <select placeholder="类别" name="categoryCode" class="">
					   <option value="">--类别--</option>
					　    <% for(res in ft){ %>
						  <option value="${res.code}">${res.message}</option>
					　　   <% } %>
					</select>
				  </div> 
				  <div class="form-group">
				     <label for="startDate">创建日期:</label>
				     <input  style="height:32px;" class="Wdate" type="text" name="createDtSt" id="startDate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'endDate\')}'})"    placeholder="请输入开始日期"/>
				     <label for="endDate">至</label>
				     <input  style="height:32px;" class="Wdate" type="text" name="createDtEd" id="endDate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'startDate\')}'})"    placeholder="请输入结束日期"/>
				  </div>
				  <div class="form-group" >
				       <label for="validClass">有效区分:</label>
				 	   <div class="form-control" id="validClass"> 
					       <label class="">
					         <input type="radio" name="validClass" class="toggle" value="1">有效
					       </label>
					       <label class="">
					         <input type="radio" name="validClass" class="toggle" value="0">无效
					       </label>
					       <label class="">
					         <input type="radio" name="validClass" checked="checked" class="toggle" value="">全部
					       </label>
				       </div>
				</div>
				  <div class="form-group"  >
				       <label for="validClass">删除区分:</label>
				 	   <div class="form-control" id="deleteClass"> 
					       <label class="">
					         <input type="radio" name="deleteClass" class="toggle" value="1">已删除
					       </label>
					       <label class="">
					         <input type="radio" name="deleteClass" class="toggle" value="0">未删除
					       </label>
					       <label class="">
					         <input type="radio" name="deleteClass" checked="checked" class="toggle" value="">全部
					       </label>
				       </div>
				</div>
				
			</form>
  			</div>
  		</div>
  		<div class="row clearfix form-actions">
  			<div class="center fw-margin">
				  <div class="btn-group-xs ">
					  <button type="button" class="btn btn-primary btn-xs searchBtn">
					  	 <i class="ace-icon fa fa-search bigger-120"></i>查询
					   </button> 
					  <button type="reset" class="btn btn-primary btn-xs fw-margin-left resetBtn">
					  	 <i class="ace-icon fa fa-road bigger-120"></i>重置
					  </button>
				   </div>
			 </div>
  		</div>
  		<div class="row fw-margin-top toolbar" >
  			<div class="col-xs-12 btn-toolbar">
  				<button type="button" class="btn btn-primary btn-xs addBtn" title="新增" data-toggle="modal" data-target="#myModal">
  					<i class="ace-icon fa  fa-plus bigger-120"></i>新增 
  				</button> 
  				<button type="button" class="btn btn-warning btn-xs removeBtn" title="将数据标识为删除状态">
  					<i class="ace-icon fa fa-trash-o bigger-120"></i>逻辑删除
  				</button> 
  				<button type="button" class="btn btn-danger btn-xs delBtn" title="物理删除数据">
  					<i class="ace-icon fa fa-trash-o bigger-120"></i>删除
  				</button> 
				<!-- <button type="button" class="btn btn-info btn-xs exportBtn" title="导出数据">
					<i class="ace-icon fa fa-download bigger-120"></i>导出 
				</button>
				<button type="button" class="btn btn-info btn-xs importBtn" title="导入数据">
					<i class="ace-icon fa fa-upload bigger-120"></i>导入 
				</button> -->
				<div class="pull-right">
	  			    <button type="button" class="btn btn-info btn-xs tableBtn" title="控制非核心列">
						<i class="ace-icon fa bigger-120">隐藏</i>
					</button>
				</div>
  			</div>
  		</div>
</div>
   <!-- 搜索框 end -->
    <!-- 内容主体开始 -->
<div class="row">
	<div class="col-xs-12">
		<table id="searchTable">
		    <tr>
                <th w_render="checkboxFunc" w_index="id" width="3%;"><input type="checkbox"/></th>
                <th w_num="total_line" width="5%">序号</th>
		        <th w_index="emailName" w_tip="true" width="10%">系统邮箱</th>
		        <th w_index="subject" width="10%">主题</th>
		        <th w_index="categoryName" width="15%">类别</th>
		        <th w_index="validCreateDt" width="15%">创建时间</th>
		        <th w_render="validClassFunc" class="cdata" w_index="validClass" width="120px">有效区分</th>
		        <th w_render="removeClassFunc" class="cdata" w_index="deleteClass" width="120px">删除区分</th>
		        <th w_render="operateFunc" class="nodata" w_index="id" w="120px" width="120px">操作</th>
		    </tr> 
		</table>
	</div> 
</div> 
<!--  -->
<div id="page-content-div" class="hide">
   <div class="col-md-12"  style="margin-top: 5px;margin-bottom: 5px">
  		 <form action="" class="form-horizontal editForm" role="form">
  		  <div class="alert alert-danger hide alert-dismissable" role="alert">
			<button type="button" class="close" data-dismiss="alert" aria-hidden="true">
				<i class="ace-icon fa fa-times"></i>
			</button>
			<strong>
			<i class="ace-icon fa fa-times"></i><span class="editForm-msg-head"></span></strong>
			<span class="editForm-msg"></span>
			<br />
		</div>
		<input type="hidden" name="id">
  		 <div class="col-md-12">
	  		  <div class="col-md-5">
		  		   <div class="form-group  ">
				     <label for="emailName ">邮箱:</label>
				      <div class="parentCls" style="display: inline;">
				        <input type="text" oldval="" class="validate[custom[email],maxSize[50]] inputElem" name="emailName" placeholder="邮箱">
				     </div>
				  </div> 
	  		 </div> 
	  		 <div class="col-md-5 col-md-offset-1" >
				   <div class="form-group  ">
				     <label class="required" for="categoryCode">类别:</label>
					 <select placeholder="类别" name="categoryCode" class="col-xs-11 col-sm-11">
						 <% for(res in ft){ %>
						  <option value="${res.code}">${res.message}</option>
					　　   <% } %>
					</select>
				  </div> 
	  		 </div>
  		 </div>
  		 <div class="col-md-12 editor">
  		 
  		 </div>
		  </form>
  	 </div>
</div><!-- #dialog-message -->

<div id="detail-dialog" class="hide">
   <div class="col-md-12" style="margin-top: 5px;margin-bottom: 5px">
    <div class="profile-user-info profile-user-info-striped">

		<div class="profile-info-row">
			<div class="profile-info-name">邮箱</div>

			<div class="profile-info-value">
				<span class="editable" name="emailName"></span>
			</div>
		</div>

		<div class="profile-info-row">
			<div class="profile-info-name">主题</div>

			<div class="profile-info-value">
				<span class="editable" name="subject"></span>
			</div>
		</div>
		<div class="profile-info-row">
			<div class="profile-info-name">类别</div>

			<div class="profile-info-value">
				<span class="editable" name="categoryName"></span>
			</div>
		</div>
		<div class="profile-info-row">
			<div class="profile-info-name">创建时间</div>

			<div class="profile-info-value">
				<span class="editable" name="validCreateDt"></span>
			</div>
		</div>
		<div class="profile-info-row">
			<div class="profile-info-name">备注</div>

			<div class="profile-info-value">
				<span class="editable"  name="remark"></span>
			</div>
		</div>
	</div>
	</div>
</div>
